{assign name='__category_list__' value=':get_category_tree()'}

<div class="app-header">
	<div class="layui-container">
		<a class="app-logo" href="/">
			<img src="/images/logo.png" alt="layui">
		</a>

		<ul class="layui-nav app-nav-main layui-hide-xs">
			{volist name='__category_list__' id='vo'}
			<li class="layui-nav-item">
				{present name='vo.child'}
				<a href="javascript:void(0)">
					<cite>{$vo.title}</cite>
				</a>
				<dl class="layui-nav-child">
					{volist name='vo.child' id='vc'}
					<dd><a href="{:url('post/index','cid='.$vc.id)}">{$vc.title}</a></dd>
					{/volist}
				</dl>
				{else/}
				<a href="{:url('post/index','cid='.$vc.id)}">
					<cite>{$vo.title}</cite>
				</a>
				{/present}
			</li>
			{/volist}
		</ul>
	</div>
</div>
